/*
 * @Author: dean && deboot@msn.cn
 * @Date: 2022-07-18 18:18:00
 * @LastEditors: dean
 * @LastEditTime: 2023-01-05 12:04:21
 * @Description: 
 * 
 * Copyright (c) 2022 by dean, All Rights Reserved. 
 */
#include <stdint.h>

#ifndef KEYS_H
#define KEYS_H

#define RSA_TEST_KEY_1          0  
#define RSA_TEST_KEY_2          0  
#define RSA_OFFICIAL_KEY        1  

#define KEY_M_BITS              3072
#define KEY_M_BYTE              (KEY_M_BITS/8)

// RSA PUBLIC KEY_2048
// N =
#if RSA_TEST_KEY_1
uint8_t key_m[] = {
    0x86u, 0x17u, 0x29u, 0x4Au, 0x4Eu, 0xB9u, 0x35u, 0xD2u, 0x5Bu, 0xACu, 0x5Fu, 0x7Fu, 0x8Bu, 0x11u, 0x1Bu, 0x88u,
    0x07u, 0xB1u, 0x36u, 0x14u, 0x29u, 0x58u, 0x52u, 0xA4u, 0x8Au, 0x0Bu, 0x2Du, 0xECu, 0x2Fu, 0x4Du, 0x58u, 0x8Fu,
    0x39u, 0xE3u, 0x2Eu, 0x33u, 0x68u, 0xCCu, 0x6Eu, 0x53u, 0x7Fu, 0x6Bu, 0x4Du, 0xEFu, 0x90u, 0xD6u, 0x8Bu, 0x68u,
    0x9Du, 0x16u, 0x43u, 0x60u, 0xAFu, 0x6Bu, 0x4Cu, 0x0Bu, 0x51u, 0xDFu, 0x0Cu, 0xA2u, 0xDCu, 0x58u, 0x48u, 0x58u,
    0xDBu, 0x15u, 0xA2u, 0xADu, 0x05u, 0xADu, 0x5Au, 0x8Eu, 0x91u, 0xF7u, 0x54u, 0x94u, 0xADu, 0xE9u, 0x0Cu, 0x70u,
    0x48u, 0xE9u, 0x84u, 0x98u, 0x3Au, 0xF4u, 0xCAu, 0xABu, 0x49u, 0xE3u, 0x67u, 0xB9u, 0x28u, 0xA7u, 0x0Du, 0x63u,
    0xE8u, 0x22u, 0x74u, 0x4Au, 0xF3u, 0xC0u, 0xFCu, 0x28u, 0xAAu, 0xD5u, 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